<div class="row">
    <div class="content col-xs-9">
        <div class="row">
            <div class="col-xs-12 text-center">
                <p class="title">Đăng ký tài khoản</p>
            </div>
            <?php echo Fuel\Core\Form::open(array('class' => 'form-horizontal'));?>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Tên đăng nhập <abbr>*</abbr>', 'username', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-5">
                        <?php echo Fuel\Core\Form::input(
                                'username', 
                                \Fuel\Core\Input::post('username', isset($member) ? $member->username : ''), 
                                array('class' => 'form-control', 'placeholder' => '')
                        );?>
                        <span class="errorMessage"><?php echo isset($valid['username']) ? $valid['username'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Mật khẩu <abbr>*</abbr>', 'password', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-5">
                        <?php echo Fuel\Core\Form::password(
                                'password',
                                '',
                                array('class' => 'form-control', 'placeholder' => '')
                        );?>
                        <span class="errorMessage"><?php echo isset($valid['password']) ? $valid['password'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Nhắc lại mật khẩu <abbr>*</abbr>', 'password_repeat', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-5">
                        <?php echo Fuel\Core\Form::password(
                                'password_repeat',
                                '',
                                array('class' => 'form-control', 'placeholder' => '')
                        );?>
                        <span class="errorMessage"><?php echo isset($valid['password_repeat']) ? $valid['password_repeat'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Email <abbr>*</abbr>', 'email', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-5">
                        <?php echo Fuel\Core\Form::input(
                                'email', 
                                \Fuel\Core\Input::post('email', isset($member) ? $member->email : ''), 
                                array('class' => 'form-control', 'placeholder' => '')
                        );?>    
                        <span class="errorMessage"><?php echo isset($valid['email']) ? $valid['email'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Giới tính <abbr>*</abbr>', 'gender', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-2">
                        <?php echo Fuel\Core\Form::select(
                                'gender',
                                \Fuel\Core\Input::post('gender', isset($member) ? $member->gender : ''),
                                array(0 => 'Nam', 1 => 'Nữ'),
                                array('class' => 'form-control')
                        );?>
                        <span class="errorMessage"><?php echo isset($valid['gender']) ? $valid['gender'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <?php echo Fuel\Core\Form::label('Ngày sinh <abbr>*</abbr>', 'birthday', array('class' => 'col-xs-offset-1 col-xs-3 control-label'));?>
                    <div class="col-xs-5">
                        <?php echo Fuel\Core\Form::input(
                                'birthday',
                                \Fuel\Core\Input::post('birthday', isset($member) ? $member->birthday : ''),
                                array('class' => 'form-control', 'id' => 'birthday', 'placeholder' => '')
                        );?>
                        <span class="errorMessage"><?php echo isset($valid['birthday']) ? $valid['birthday'] : '';?></span>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-xs-offset-4 col-xs-8">
                        <?php echo Fuel\Core\Form::button('submit', 'Đăng ký', array('class' => 'btn background'));?>
                    </div>
                </div>
            <?php echo Fuel\Core\Form::close();?>
        </div>
    </div>
    <div class="sidbar">
        aaaaaaaaaaaaaaaaaaaaaaa
    </div>
</div>